<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>首页</title>
  <link rel="stylesheet" href="../static/index.css">
  <script src="../static/vue.js"></script>
  <link rel="stylesheet" href="../static/element_index.css">
  <script src="../static/index.js"></script>
  <script src="../static/axios.min.js"></script>
</head>

<body>
  <div id="app">
    <div class="home">
      <div class="cards">
        <el-row :gutter="24">
          <el-col :span="6">
            <el-button type="primary" round v-on:click="plants">植物识别</el-button>
          </el-col>
          <el-col :span="6">
            <el-button type="success" round v-on:click="airs">空气质量</el-button>
          </el-col>
          <el-col :span="6">
            <el-button type="info" round v-on:click="texts">文字识别</el-button>
          </el-col>
          <el-col :span="6">
            <el-button type="danger" round v-on:click="views">请求日志</el-button>
          </el-col>
        </el-row>
      </div>
    </div>
  </div>

</body>
<script>
  var vm = new Vue({
    el: "#app",
    data() {
      return {

      }
    },
    methods: {
      plants() {
        window.location.href = "http://localhost:5000/plant";
      },
      airs() {
        window.location.href = "http://localhost:5000/air";
      },
      texts() {
        window.location.href = "http://localhost:5000/texts";
      },
      views() {
        window.location.href = "http://localhost:5000/view";
      }
    }
  })
</script>

</html>